<script>
	export default {
		onLaunch: function() {
			wx.cloud.init({
				env:'cloud1-6g19om8258ff8b8e',
				traceUser: true,
			})
		   //建立连接
			this.goeasy.connect({
				id:"", // 推送类型 pubsub 选填，im必填  
				data:{}, // 必须是一个对象，pubsub 选填，im必填
				onSuccess: function () {  //连接成功
				  console.log("连接成功") //连接成功
				},
				onFailed: function (error) { //连接失败
				  console.log("连接失败:"+error.code+ ",error:"+error.content);
				},
				onProgress:function(attempts) { //连接或自动重连中
				  console.log("连接或自动重连中", attempts);
				}
			});
			// console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
